import {
  FormItemType,
  DictionaryType,
  ParamsType,
  TableKeyListItemType,
} from "@/common/types/conf";

export const form: Array<FormItemType> = [
  {
    type: "input",
    tip: "试卷ID",
    searchKey: "paperCode",
  },
  {
    type: "input",
    tip: "试卷关键字",
    searchKey: "titleFuzzy",
  },
];

export const params: ParamsType = {
  paperCode: "",
  titleFuzzy: "",
  isEnabled: 1,
};

export const dictionary: DictionaryType = {
  isEnabled: [
    { value: 0, label: "禁用" },
    { value: 1, label: "启用" },
  ],
};

export const tableKeyList: Array<TableKeyListItemType> = [
  {
    key: "radio",
    width: 50,
  },
  {
    key: "paperCode",
    label: "ID",
  },
  {
    key: "title",
    label: "试卷",
  },
  {
    key: "totalGrade",
    label: "总分",
  },
  {
    key: "passGrade",
    label: "及格分",
  },
];
